/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.portalnahouby.dto;

import java.io.Serializable;

/**
 * DTO for Picker entity
 *
 * @author Lukas Marica
 */
public class PickerDTO implements Serializable {

    private Long id;
    private String name;
    private String surname;
    private String info;
    private Boolean isAdmin;

    public PickerDTO() {
    }

    public PickerDTO(Long id, String name, String surname, String info, Boolean isAdmin) {
        this.id = id;
        this.name = name;
        this.surname = surname;
        this.info = info;
        this.isAdmin = isAdmin;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Boolean getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Boolean isAdmin) {
        this.isAdmin = isAdmin;
    }

    @Override
    public String toString() {
        return "PickerDTO{" + "id=" + id + ", name=" + name + ", surname=" + surname + ", info=" + info + ", isAdmin=" + isAdmin + '}';
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PickerDTO other = (PickerDTO) obj;
        if (this.id == null || !this.id.equals(other.id)) {
            return false;
        }
        return true;
    }
}
